/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'segoe ui', 'microsoft yahei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 仪表板容器 */
.dashboard-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 仪表板标题 */
.dashboard-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.dashboard-header h1 {
    color: #ff6b81;
    font-size: 28px;
}

/* 数据卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

/* 数据卡片样式 */
.stat-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #ff6b81;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* 用户信息区域 */
.user-info-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 20px;
}

.user-card, .wife-card {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.user-avatar, .wife-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ff6b81;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
}

.user-details, .wife-details {
    flex: 1;
}

.user-details h3, .wife-details h3 {
    margin-bottom: 5px;
    color: #333;
}

.user-details p, .wife-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 3px;
}

/* 任务区域 */
.task-section {
    margin-bottom: 25px;
}

.task-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.task-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.task-card.completed {
    border-left: 4px solid #4caf50;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.task-header h3 {
    color: #333;
}

.task-status {
    font-size: 14px;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.task-description {
    margin-bottom: 10px;
    color: #666;
}

.task-requirement {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    padding: 5px 0;
    border-top: 1px dashed #eee;
    border-bottom: 1px dashed #eee;
}

.task-rewards {
    display: flex;
    gap: 15px;
}

.reward-money, .reward-love {
    font-size: 14px;
    font-weight: bold;
    color: #ff6b81;
}

/* 爱情银行区域 */
.love-bank-section {
    margin-bottom: 25px;
}

.love-bank-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.bank-info {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.bank-info p {
    margin-bottom: 5px;
    color: #666;
}

.balance, .interest-rate {
    font-weight: bold;
    color: #ff6b81;
}

/* 排行榜区域 */
.rankings-section {
    margin-bottom: 25px;
}

.rankings-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.rankings-list {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ranking-item:last-child {
    border-bottom: none;
}

.rank {
    width: 30px;
    font-weight: bold;
    color: #ff6b81;
}

.name {
    flex: 1;
    color: #333;
}

.score {
    font-weight: bold;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-info-section {
        flex-direction: column;
    }
    
    .user-card, .wife-card {
        width: 100%;
    }
}